package com.naiterui.ehp.bs.cms.modules.oms.entity;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.naiterui.ehp.bp.support.bean.annotation.Fen2Yuan;
import com.naiterui.ehp.bs.cms.common.entity.BaseEntity;

import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <pre>
 *      订单退款表
 * </pre>
 *
 * @author 王泽浩
 * @date 2019-02-19 10:27
 * @since 1.0.0
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("e_refund_order")
public class RefundOrder extends BaseEntity implements java.io.Serializable {

    private static final long serialVersionUID = -7005881775487424507L;

    /**
     * 订单ID
     */
    private Long orderId;

    /**
     * 订单号
     */
    private String orderSn;

    /**
     * 退款金额
     */
    @Fen2Yuan
    private Integer amount;

    /**
     * 退款方式
     */
    private Integer method;

    /**
     * 0:待审核 1:审核不通过 2:审核通过 3：已退款
     */
    private Integer status;

    /**
     * 审核时间
     */
    private Date auditTime;

    /**
     * 收款账号
     */
    private String paymentAccount;

    /**
     * 退款原因
     */
    private Integer reason;

    /**
     * 备注
     */
    private String remark;

    @JsonIgnore
    @TableLogic
    private Integer delFlag;

}
